from tortoise import BaseDBAsyncClient


async def upgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `saas_buckling_group` MODIFY COLUMN `times` INT NOT NULL  COMMENT '总次数/时长' DEFAULT 0;"""


async def downgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `saas_buckling_group` MODIFY COLUMN `times` INT NOT NULL  COMMENT '总次数/时长1' DEFAULT 0;"""
